package io.admin.modules.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import io.admin.modules.sys.dao.StuScoreDao;
import io.admin.modules.sys.dto.StuScoreDTO;
import io.admin.modules.sys.entity.StuScoreEntity;
import io.admin.modules.sys.service.StuScoreService;
import cn.hutool.core.util.StrUtil;
import io.common.service.impl.CrudServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 课程成绩表
 *
 * @author BS #
 * @since 1.0.0 2024-04-30
 */
@Service
public class StuScoreServiceImpl extends CrudServiceImpl<StuScoreDao, StuScoreEntity, StuScoreDTO> implements StuScoreService {

    @Override
    public QueryWrapper<StuScoreEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<StuScoreEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}